package com.szsky.sky.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.szsky.sky.dto.AttendanceStatisticsDto;
import com.szsky.sky.dto.AttendanceStatisticsQuery;
import com.szsky.sky.pojo.AttendanceStatistics;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@DS("sky_hrm")
public interface AttendanceStatisticsMapper extends BaseMapper<AttendanceStatistics> {

    List<String> getAttendanceStatisticsUcUids(Page<AttendanceStatisticsDto> page, @Param("query") AttendanceStatisticsQuery query);

    Long attendanceStatisticsCount(@Param("query") AttendanceStatisticsQuery query);

    List<AttendanceStatisticsDto> attendanceStatistics(@Param("query") AttendanceStatisticsQuery query);
}
